# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-net-xmpp
pkgver=1.05
pkgrel=8
pkgdesc="Perl/CPAN Module Net::XMPP"
arch=("any")
url="https://search.cpan.org/dist/Net-XMPP"
license=("GPL" "PerlArtistic")
makedepends=("perl-digest-sha1" "perl-xml-stream" "perl-module-build")
depends=("perl-digest-sha1" "perl-xml-stream" "perl-digest-hmac")
source=("https://search.cpan.org/CPAN/authors/id/D/DA/DAPATRICK/Net-XMPP-$pkgver.tar.gz")
md5sums=('6fdfeecde1b7eea1a24413e6557a97e2')

build() {
  cd "$srcdir"/Net-XMPP-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Net-XMPP-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
